package org.gongliang.jsmile.authc.sys.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;
import org.gongliang.jsmile.authc.sys.entity.SysDepartment;
import org.gongliang.jsmile.authc.sys.vo.SysDepartmentVo;
import org.gongliang.jsmile.common.annotation.MybatisDao;
import org.gongliang.jsmile.common.base.BaseDao;

/**
* 
* @author 龚亮
* @version 1.0
* @date 2018年08月25日 04:57:24
*/
@MybatisDao
public interface SysDepartmentDao extends BaseDao<SysDepartment> {

	List<SysDepartmentVo> findAllByVo(Map<String, Object> reqMap);

	/**
	 * desc:删除所有子部门
	 */
	@Delete("delete from t_op_sys_department where parent_id=#{parentId}")
	int deleteByPid(Integer parentId);

}
